<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColPhoneToBusinessSituationTemplateTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('business_situation_template', function(Blueprint $table)
        {
            $table->string('phone')->nullable()->comment('手机号')->after('content');
            $table->string('wechat')->nullable()->comment('微信号')->after('phone');
            $table->string('email')->nullable()->comment('邮箱')->after('wechat');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
